package mx.example.com.mvpdemo.ui.setting;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import mx.example.com.mvpdemo.base.BaseFragment;


/**
 * Created by maixin on 2018/4/10.
 */

public class SettingFragment extends BaseFragment<SettingContract.Presenter> implements SettingContract.View{

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPresenter.checkVersion();
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    @Override
    public void setPresenter(SettingContract.Presenter presenter) {
        if (mPresenter == null) {
            mPresenter = new SettingPresenter(this);
        }
    }
    /**
     * 成功回调
     * */
    @Override
    public void showCheckVersionSuccess(String msg) {

    }


    /**
     * 失败回调
     * */
    @Override
    public void showheckVersionError(String msg) {

    }
}
